	
    function number($field, $value, $fieldinfo) {
		extract($fieldinfo);
		$setting = string2array($setting);
		$size = $setting['size'];	
       if($field == 'inventory'){
			$ushop = getcache('ushop_setting','ushop');
			$defaultvalue = $ushop['defaultinventory']; 
			 }		
		if(!$value) $value = $defaultvalue;
		return "<input type='text' name='info[$field]' id='$field' value='$value' class='input-text' size='$size' {$formattribute} {$css}>";
	}
